package com.zoroki.hmusic.service;

import com.zoroki.hmusic.entity.FavoritePlaylist;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zoroki
 * @since 2023-05-10
 */
public interface IFavoritePlaylistService extends IService<FavoritePlaylist> {

    int deleteFavoritePlaylistByUserId(int userId, int playlistId);

    int deleteFavoritePlaylistByPlaylistId(int playlistId);

    int addPlaylistToFavorite(FavoritePlaylist favoritePlaylist);

    FavoritePlaylist checkPlaylistIsFavorite(int favoriteId, int playlistId);
}
